﻿using System.Windows;
using AzukiMap.Layer;
using GeoAPI.Geometries;

namespace AzukiMap.Renderer
{
    public abstract class Renderer
    {
        protected MapLayer _layer;

        protected Renderer(MapLayer layer)
        {
            _layer = layer;
        }

        protected Point GetPixPoint(ICoordinate coord)
        {
            IPoint pixPoint = _layer.MapCoord.GetPixPointFromGeo(coord.X, coord.Y);
            var p = new Point(pixPoint.X, pixPoint.Y);

            return p;
        }
    }
}